package com.imooc.imoocbilibili.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.imoocbilibili.entity.File;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件表
 *
 * @author jl
 * @since 2022-04-10 19:51:13
 */
public interface FileService extends IService<File> {

    Page<File> queryPage(Integer pageNo, Integer pageSize);

    String uploadFileBySlices(MultipartFile slice,
                              String fileMD5,
                              Integer sliceNo,
                              Integer totalSliceNo) throws Exception;

    String getFileMD5(MultipartFile file) throws Exception;

    void slices(MultipartFile file) throws Exception;
}

